<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SmartphoneBrainScanner2: Sbs2EmotivMounter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="sbs2_icon.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SmartphoneBrainScanner2
   </div>
   <div id="projectbrief">A framework for building cross-platform real-time EEG applications. http://code.google.com/p/smartphonebrainscanner2/</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_sbs2_emotiv_mounter.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Sbs2EmotivMounter Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="sbs2emotivmounter_8h_source.html">sbs2emotivmounter.h</a>&gt;</code></p>

<p><a href="class_sbs2_emotiv_mounter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:ab251cdc4ec6d25ef045354c8a24b3d59"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#ab251cdc4ec6d25ef045354c8a24b3d59">getSerialNumberThreaded</a> ()</td></tr>
<tr class="memitem:acbb1b2ab0f49fe27fb11c26a1633b265"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#acbb1b2ab0f49fe27fb11c26a1633b265">invalidateSerialNumber</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a7b7852486a6c16c7db1ae2898d67f980"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#a7b7852486a6c16c7db1ae2898d67f980">deviceFound</a> (char *serialNumber)</td></tr>
<tr class="memdesc:a7b7852486a6c16c7db1ae2898d67f980"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emited when device is found.  <a href="#a7b7852486a6c16c7db1ae2898d67f980"></a><br/></td></tr>
<tr class="memitem:aa25dec03a486622e0d90a97f6b9b4117"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#aa25dec03a486622e0d90a97f6b9b4117">deviceLost</a> ()</td></tr>
<tr class="memdesc:aa25dec03a486622e0d90a97f6b9b4117"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signal emited when device has been lost.  <a href="#aa25dec03a486622e0d90a97f6b9b4117"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2888e172fdb5428ae4c620be9b6686c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#a2888e172fdb5428ae4c620be9b6686c4">start</a> ()</td></tr>
<tr class="memdesc:a2888e172fdb5428ae4c620be9b6686c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mount the device. This method starts the mounting process and reading of the serial number. If device watch is turned on, it is also started.  <a href="#a2888e172fdb5428ae4c620be9b6686c4"></a><br/></td></tr>
<tr class="memitem:a1a1e666cc3e7fb3229400fa98ebc831e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#a1a1e666cc3e7fb3229400fa98ebc831e">~Sbs2EmotivMounter</a> ()</td></tr>
<tr class="memdesc:a1a1e666cc3e7fb3229400fa98ebc831e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a1a1e666cc3e7fb3229400fa98ebc831e"></a><br/></td></tr>
<tr class="memitem:a07868310a0383974c6ca1c662fd79328"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#a07868310a0383974c6ca1c662fd79328">umountEmotiv</a> ()</td></tr>
<tr class="memdesc:a07868310a0383974c6ca1c662fd79328"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the system to the state before mounting Emotiv device. This method sets the system to the state before mountint the Emotiv device. This means underclocking the device, and changing it back to USB client mode if necessary.  <a href="#a07868310a0383974c6ca1c662fd79328"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a035a83bf13d86ceada5adf970bd29238"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_sbs2_emotiv_mounter.html">Sbs2EmotivMounter</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#a035a83bf13d86ceada5adf970bd29238">New</a> (int toOverclock_=0, QObject *parent=0)</td></tr>
<tr class="memdesc:a035a83bf13d86ceada5adf970bd29238"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create singleton object. This method creates new object if it doesn't exist.  <a href="#a035a83bf13d86ceada5adf970bd29238"></a><br/></td></tr>
<tr class="memitem:a1f79faf853e9e08e5075ca10f8956007"><td class="memItemLeft" align="right" valign="top">static char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sbs2_emotiv_mounter.html#a1f79faf853e9e08e5075ca10f8956007">getSerialNumberStatic</a> ()</td></tr>
<tr class="memdesc:a1f79faf853e9e08e5075ca10f8956007"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read serial number of the Emotiv device. This method reads the serial number of the connected Emotiv device.  <a href="#a1f79faf853e9e08e5075ca10f8956007"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Smartphone Brain Scanner 2 License Agreement (MIT License)</p>
<p>Copyright (c) 2012 Arkadiusz Stopczynski, Jakob Eg Larsen, Carsten Stahlhut, Michael Kai Petersen, Lars Kai Hansen. Technical University of Denmark, <a class="el" href="namespace_d_t_u.html">DTU</a> Informatics, Cognitive Systems Section. <a href="http://code.google.com/p/smartphonebrainscanner2">http://code.google.com/p/smartphonebrainscanner2</a></p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. On OSX we use hidapi to access raw data. <a class="el" href="class_class.html">Class</a> responsible for setting the usb device on all platforms. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1a1e666cc3e7fb3229400fa98ebc831e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Sbs2EmotivMounter::~Sbs2EmotivMounter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7b7852486a6c16c7db1ae2898d67f980"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Sbs2EmotivMounter::deviceFound </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>serialNumber</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Signal emited when device is found. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">serialNumber</td><td>Char array containing serial number. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa25dec03a486622e0d90a97f6b9b4117"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Sbs2EmotivMounter::deviceLost </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Signal emited when device has been lost. </p>

</div>
</div>
<a class="anchor" id="a1f79faf853e9e08e5075ca10f8956007"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char * Sbs2EmotivMounter::getSerialNumberStatic </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read serial number of the Emotiv device. This method reads the serial number of the connected Emotiv device. </p>
<dl class="section return"><dt>Returns:</dt><dd>This method returns char array containg the serial number of the Emotiv device. </dd></dl>

</div>
</div>
<a class="anchor" id="ab251cdc4ec6d25ef045354c8a24b3d59"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Sbs2EmotivMounter::getSerialNumberThreaded </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="acbb1b2ab0f49fe27fb11c26a1633b265"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Sbs2EmotivMounter::invalidateSerialNumber </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a035a83bf13d86ceada5adf970bd29238"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sbs2_emotiv_mounter.html">Sbs2EmotivMounter</a> * Sbs2EmotivMounter::New </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>toOverclock_</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create singleton object. This method creates new object if it doesn't exist. </p>
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">toOverclock_</td><td>Level indicating how much the device (phone, tablet) should be overclocked if possible. Set 0 for no overclock. Currently supported only on Nokia N900. </td></tr>
    <tr><td class="paramname">parent</td><td>Pointer to the parent QObject object. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>This method returns pointer to <a class="el" href="class_sbs2_emotiv_mounter.html">Sbs2EmotivMounter</a> object. </dd></dl>

</div>
</div>
<a class="anchor" id="a2888e172fdb5428ae4c620be9b6686c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sbs2EmotivMounter::start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Mount the device. This method starts the mounting process and reading of the serial number. If device watch is turned on, it is also started. </p>

</div>
</div>
<a class="anchor" id="a07868310a0383974c6ca1c662fd79328"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Sbs2EmotivMounter::umountEmotiv </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the system to the state before mounting Emotiv device. This method sets the system to the state before mountint the Emotiv device. This means underclocking the device, and changing it back to USB client mode if necessary. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_sbs2_emotiv_mounter.html">Sbs2EmotivMounter</a></li>
    <li class="footer">Generated on Fri Jun 29 2012 14:30:34 for SmartphoneBrainScanner2 by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.1 </li>
  </ul>
</div>
</body>
</html>
